package com.ruoyix.im.domain.bo;

import com.ruoyix.common.core.domain.BaseEntity;
import com.ruoyix.common.core.validate.AddGroup;
import com.ruoyix.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * 群聊记录业务对象 im_chat_user_group_message
 *
 * @author ruoyi
 * @date 2024-05-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ImChatUserGroupMessageBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 群ID
     */
    @NotNull(message = "群ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long groupId;

    /**
     * 发送ID
     */
    @NotNull(message = "发送ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long fromId;

    /**
     * 接收ID
     */
    @NotNull(message = "接收ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long toId;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;



}
